<?php


/*
 * File AllTests.php for project Rijlesplanner.nl
 * Created on 10 dec 2007 at 23:22:50 by Ivar Pruijn
 */
if (!defined('PHPUnit_MAIN_METHOD')) {
	define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}

require_once ("../includes/header.inc.php");
require_once PEAR_DIR . '/PHPUnit/Framework.php';
require_once PEAR_DIR . '/PHPUnit/TextUI/TestRunner.php';
require_once("Leerling_GetCursussenTest.php");
require_once("AgendaTheorieTest.php");

class AllTests {
	public static function main() {
		PHPUnit_TextUI_TestRunner :: run(self :: suite());
	}

	public static function suite() {
		$suite = new PHPUnit_Framework_TestSuite('PHPUnit');

		$suite->addTestSuite('Leerling_GetCursussenTest');
		$suite->addTestSuite('AgendaTheorieTest');

		return $suite;
	}

	protected function setUp() {
		print "\nMySuite::setUp()";
	}

	protected function tearDown() {
		print "\nMySuite::tearDown()";
	}
}

if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
	AllTests :: main();
}
?>
